<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>menu_add</title>
</head>
<body>
<h1>菜品添加界面</h1>
<form action="" method="post">
    {% csrf_token %}
    菜品名:<input type="text" name="name">
    <br>
    菜品价格: <input type="text" name="price">
    <br>
    餐馆名称: <select name="restaurant" id="restaurant">
    {% for restaurant in restaurants %}
        <option value="{{ restaurant.id }}">{{ restaurant.name }}</option>
    {% endfor %}

</select>

    <input type="submit" value="提交">
</form>

</body>
</html>